package com.fxm.controller;

import com.fxm.client.MenuClient;
import com.fxm.returns.RespEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 菜单管理 前端控制器
 * </p>
 *
 * @author fxm
 * @since 2021-02-06
 */
@RestController
@RequestMapping("/menu")
@Slf4j
@Api(value = "菜单管理", tags = "菜单管理")
public class MenuController {

    @Autowired
    private MenuClient menuClient;

    @GetMapping
    @ApiOperation("菜单列表")
    public RespEntity queryAllMenus() {
        return menuClient.queryAllMenu();
    }

}
